import http from "@/plugins/aixos";

export function findCalcBet(id: number) {
  return http.request<CalcBetModel>({
    url: `/calculate-bet/${id}`,
    method: "GET",
  });
}

export function findAllCalcBet(args = {}) {
  const url =
    `/calculate-bet?` +
    Object.entries(args)
      .map(([key, value]) => `${key}=${value}`)
      .join("&");
  return http.request<CurveConfigInter[]>({
    url,
    method: "GET",
  });
}
